package com.sjd.mall.service.goods;

import com.sjd.common.core.domain.AjaxResult;
import com.sjd.mall.domain.dto.goods.*;

import java.util.List;

/**
 * @author : Mr.s
 * @version : 1.0
 * @description : 商品评论service
 * @date : 2022-01-17 14:26
 */
public interface GoodsCommentService {

    /**
     * 添加评论
     *
     * @param requestDTO requestDTO
     * @return return
     */
    AjaxResult addComment(SjdGoodsCommentAddRequestDTO requestDTO);

    /**
     * 追加评论
     *
     * @param requestDTO requestDTO
     * @return return
     */
    List<SjdGoodsCommentQueryResponseDTO> queryCommentApp(SjdGoodsCommentQueryRequestDTO requestDTO);

    /**
     * 模糊查找
     *
     * @param requestDTO requestDTO
     * @return return
     */
    List<SjdWebSiteGoodsCommentQueryResponseDTO> queryCommentWebsite(SjdWebSiteGoodsCommentQueryRequestDTO requestDTO);

    /**
     * 根据商品id 查询
     * @param goodsId goodsId
     * @return return
     */
    List<SjdWebSiteGoodsCommentQueryResponseDTO> queryCommentWebsiteByGoodsId(Long goodsId);

    /**
     * 根据商品id 查询
     * @param commentId commentId
     * @return return
     */
    AjaxResult queryCommentWebsiteByCommentId( Long commentId);

    /**
     * 删除评论
     *
     * @param commentId commentId
     * @return return
     */
    AjaxResult delComment(Long commentId);
}
